﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Models.API.Param
{
    public class SaleOrderModel
    {
        /// <summary>
        /// 到往来单位
        /// </summary>
        public string BTypeUserCode { get; set; }
        /// <summary>
        /// 仓库
        /// </summary>
        public string KTypeUserCode { get; set; }
        /// <summary>
        /// 经手人
        /// </summary>
        public string ETypeUserCode { get; set; }
        /// <summary>
        /// 订单日期
        /// </summary>
        public DateTime BillDate { get; set; }
        /// <summary>
        /// 订单code
        /// </summary>
        public string BillCode { get; set; }
        /// <summary>
        /// 明细
        /// </summary>
        public List<SaleOrderDetails> Details { get; set; }

    }
    public class SaleOrderDetails
    {
        /// <summary>
        /// 商品序列号 2022-05-30添加
        /// </summary>
        public string Serial { get; set; }
        /// <summary>
        /// 商品编号
        /// </summary>
        public string PTypeUserCode { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public decimal Qty { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public decimal Price { get; set; }
        public string CargoCode { get; set; } = "";
    }


}
